<?php


namespace Base\BaseBundle\Repository;

use Doctrine\ORM\EntityRepository;

class MenuRepository extends EntityRepository {

	/**
	 * Provide all menu_entries
	 * @return Ambigous <multitype:, \Doctrine\ORM\mixed, \Doctrine\ORM\Internal\Hydration\mixed, \Doctrine\DBAL\Driver\Statement, \Doctrine\Common\Cache\mixed>
	 */
	public function findAllOrderedByName()
	{
		return $this->getEntityManager()
		->createQuery(
				'SELECT m FROM BaseWebBundle:Menu m ORDER BY m.name ASC'
		)
		->getResult();
	}
}